<?php
defined('IN_TS') or die('Access Denied.');

function icon () {
    $arrIcon = aac('svg')->findAll('svg_board',array('isaudit'=>0,'cateid' => 1),'addtime desc','boardid,name,count_svg,count_view,count_comment,addtime',10);

    foreach ($arrIcon as $key => $item) {
        $arrIcon[$key]['name'] = tsTitle($item['name']);
        $arrIcon[$key]['icons'] =aac('svg')->getBoardById($item['boardid'],'9');
    }

    include template('icon','icon');
}

addAction('home_content','icon');